package xyz.robinbingo.pfboot.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import xyz.robinbingo.pfboot.entity.User;

/**
 * CarRepository
 *
 * @author Robin
 * @date 2018/10/18 11:41
 **/
public interface UserRepository extends JpaRepository<User, Integer> {

    /**
     * 通过username得到user
     *
     * @param username 用户名
     * @return User
     * @author Robin
     * @date 2018/10/24 14:46
     **/
    User findByUsername(String username);
}
